package org.forex.impl.ws;

import java.io.IOException;
import java.util.Map;
import java.util.Optional;

import org.forex.api.ws.AbstractHttpCall;
import org.forex.vo.Orders;

public class GetOrders extends AbstractHttpCall<Orders> {

	public static Map<String, String> parameters;

	private static String accountId="9646994";

	public GetOrders() {
		super(Orders.class);
	}

	@Override
	public Map<String, String> getParameters() {
		return null;
	}

	public Optional<Orders> get() throws IOException{
		return call("/v1/accounts/"+accountId+"/orders");
	}

	@Override
	public String getHttpMethod() {
		return GET;
	}

}
